
//需要运行的代码（函数）
//var author = function () { console.log("author"); };
//var books = function () { console.log("books"); };

//配置路由规则的
var routes = {
    '/author': function () { console.log("author")},
    '/books': function () { console.log("books")}
  };
//创建一个路由器
var router = Router(routes);

//初始化路由
router.init();